import { request } from "@/utils/service"

/** 增 */
export function addSysAuthorityRoute(data: any) {
  return request({
    url: "/sysAuthorityRoute/insertOrUpdate",
    method: "post",
    data:[data]
  })
}

/** 删 */
export function delSysAuthorityRoute(data: any) {
  return request({
    url: `/sysAuthorityRoute/deleteByIds`,
    method: "post",
    data
  })
}

/** 改 */
export function updateTableDataApi(data: any) {
  return request({
    url: "table",
    method: "put",
    data
  })
}

/** 查 */
export function getSysAuthorityRoute(params:any) {
  return request<any>({
    // url: "/sysAuthorityRoute/getAllAuthorityRoute",
    // method: "get",
    url:'/sysAuthorityRoute/selectAll',
    method:'post',
    data:params
  })
}
